(function () {
    'use strict';

    angular.module('ariaNg').factory("kodService", function () {
        return {
            getUrlParams: function () {
                var result = new Object();
                var params = window.location.search.slice(1).split('&');

                for (var i = 0; i < params.length; i++) {
                    var idx = params[i].indexOf('=');

                    if (idx > 0) {
                        result[params[i].substring(0, idx)] = decodeURIComponent(params[i].substring(idx + 1));
                    }
                }

                return result;
            }
        }
    })

}())